﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace finProj.Gui
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            if (Settings.Instance.state == 1)
            {
                clustersToolStripMenuItem.Enabled = false;
                OpenImageButton.Enabled = false;
                openImageToolStripMenuItem.Enabled = false;
                loadDatasetToolStripMenuItem.Enabled = true;
                LoadDatasetButton.Enabled = true;
            }
        }

        private void fileToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void loadDatasetToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            var form3 = new Form3();
            form3.Show();
        }

        private void openImageToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            var form2 = new Form2();
            form2.Show();
        }

        private void exitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Dispose();
            Application.Exit();
        }

        private void openHelpDocumentToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Help.Instance.Show();
        }

        private void richTextBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void textBox2_TextChanged(object sender, EventArgs e)
        {

        }

        private void textBox3_TextChanged(object sender, EventArgs e)
        {

        }

        private void OpenImageButton_Click(object sender, EventArgs e)
        {
            this.Hide();
            var form2 = new Form2();
            form2.Show();
        }

        private void LoadDatasetButton_Click(object sender, EventArgs e)
        {
            this.Hide();
            var form3 = new Form3();
            form3.Show();
        }

        private void ExitButton_Click(object sender, EventArgs e)
        {
            this.Dispose();
            Application.Exit();
        }

        private void lbl2_Click(object sender, EventArgs e)
        {

        }

        private void clustersToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var clsedit = new clustersEdit();
            clsedit.Show();
        }
        void Form1_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
        {
            this.Dispose();
            Application.Exit();
        }

       
    }
}
